* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar h1 {
    color: #667eea;
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-btn.active,
.nav-btn:hover {
    background: #667eea;
    color: white;
}

/* 页面切换 */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* 首页样式 */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.welcome-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hamster-selection {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hamster-selection h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
    font-size: 24px;
}

.hamster-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.hamster-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hamster-card:hover {
    transform: translateY(-5px);
}

.hamster-avatar {
    font-size: 60px;
    margin-bottom: 15px;
}

.hamster-card h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 20px;
}

.hamster-card p {
    color: #666;
    margin-bottom: 20px;
}

.adopt-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.adopt-btn:hover {
    background: #764ba2;
    transform: scale(1.05);
}

/* 宠物页面样式 */
.pet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: white;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pet-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hamster-display {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.hamster-emoji {
    font-size: 120px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamster-emoji:hover {
    transform: scale(1.1);
}

.hamster-emoji:active {
    transform: scale(0.9);
}

.hamster-status {
    flex: 1;
}

.status-item {
    margin-bottom: 15px;
}

.status-item span {
    display: inline-block;
    width: 60px;
    font-weight: bold;
    color: #667eea;
}

.progress-bar {
    display: inline-block;
    width: 200px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.action-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover:not(:disabled) {
    background: #764ba2;
    transform: translateY(-2px);
}

.action-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.pet-info {
    text-align: center;
    color: #666;
}

.pet-info h3 {
    color: #667eea;
    margin-bottom: 10px;
}

/* 排行榜样式 */
#leaderboard-page h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.leaderboard-list {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.rank {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    width: 50px;
}

.leaderboard-emoji {
    font-size: 40px;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: bold;
    color: #333;
}

.leaderboard-score {
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamster-display {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .progress-bar {
        width: 150px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
}